package com.hsgene.order.dto;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.hsgene.common.util.date.TimeJsonDeserializer;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @desc:机构订单发票
 * @author: fuxiang
 * @date: 2018/8/10 15:54
 */
public class OrderSupplierInvoiceDto implements Serializable {
    private static final long serialVersionUID = 8605012440639097338L;

    private Integer id;

    private String type;

    private BigDecimal amount;

    private String invoiceCode;
    @JsonDeserialize(using = TimeJsonDeserializer.class)
    private Date createTime;

    private String relationOrderIds;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type == null ? null : type.trim();
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public String getInvoiceCode() {
        return invoiceCode;
    }

    public void setInvoiceCode(String invoiceCode) {
        this.invoiceCode = invoiceCode == null ? null : invoiceCode.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getRelationOrderIds() {
        return relationOrderIds;
    }

    public void setRelationOrderIds(String relationOrderIds) {
        this.relationOrderIds = relationOrderIds == null ? null : relationOrderIds.trim();
    }
}
